import request from "@/utils/request";
import defaultSettings from "@/settings";

//大额汇兑业务授权
export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseAuth/HvpsCreditTransferAuth/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseAuth/HvpsCreditTransferAuth/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

// 明细
export function detail(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseAuth/HvpsCreditTransferAuth/detail`,
    method: "get",
    params,
  });
}

// 授权
export function authorize(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseAuth/HvpsCreditTransferAuth/authorize${code}`,
    method: "post",
    data,
  });
}

// 拒绝
export function reject(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseAuth/HvpsCreditTransferAuth/reject${code}`,
    method: "post",
    data,
  });
}
